<?php

namespace App\Http\Responses;
use Illuminate\Http\Resources\Json\PaginatedResourceResponse as BasePaginatedResourceResponse;


class PaginatedResourceResponse extends BasePaginatedResourceResponse
{

    protected function wrap($data, $with = [], $additional = [])
    {

        $meta = [
            "status"=> "success",
            "code" => $this->calculateStatus(),
        ];
        $parent = parent::wrap($data, $with, $additional);
        return array_merge_recursive($meta,$parent);
    }
}